/ Assembly List / LJCNetCommon / XMLBuilder / GetEnd

Namespace - LJCNetCommon


Parameters
name - The element name.
textState - The current text state values.
addIndent - Indicates if the element can be indented.

Returns

The element end tag.

Syntax

C#
public String GetEnd(String name, TextState textState, Boolean addIndent = True)

Gets the element end tag.

Remarks

GetEnd() is a "GetText" method which creates the element closing tag and returns the text value.

Example

C#
// Root Method Begin
var textState = new TextState();

// Defaults: IndentCharCount = 2, LineLimit = 80, WrapEnabled = false.
var xb = new XMLBuilder(textState);

// Example Method:
var result = xb.GetEnd("Person", textState);

// result:
// <Person>

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.